package com.whu.waterworks.model;
// default package

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * TAlert entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "T_ALERT", schema = "ZJ")
public class Alert implements java.io.Serializable {

	// Fields

	private Integer alertId;
	private String alertType;
	private String alertContent;

	// Constructors

	/** default constructor */
	public Alert() {
	}

	/** minimal constructor */
	public Alert(Integer alertId) {
		this.alertId = alertId;
	}

	/** full constructor */
	public Alert(Integer alertId, String alertType, String alertContent) {
		this.alertId = alertId;
		this.alertType = alertType;
		this.alertContent = alertContent;
	}

	// Property accessors
	//主键自增
	@Id
	@Column(name = "ALERT_ID", nullable = false)
	@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="ALERT_ID_SEQ_TEST")
	@SequenceGenerator(name="ALERT_ID_SEQ_TEST",sequenceName="ALERT_ID_SEQ",allocationSize=1)
	public Integer getAlertId() {
		return this.alertId;
	}

	public void setAlertId(Integer alertId) {
		this.alertId = alertId;
	}

	@Column(name = "ALERT_TYPE")
	public String getAlertType() {
		return this.alertType;
	}

	public void setAlertType(String alertType) {
		this.alertType = alertType;
	}

	@Column(name = "ALERT_CONTENT")
	public String getAlertContent() {
		return this.alertContent;
	}

	public void setAlertContent(String alertContent) {
		this.alertContent = alertContent;
	}

}
